package cn.usain.service.impl;

import cn.usain.entity.Products;
import cn.usain.mapper.ProductsMapper;
import cn.usain.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductsServiceImpl implements ProductsService {
    @Autowired
    private ProductsMapper productsMapper;
    @Override
    public List<Products> getProducts() {
        return productsMapper.getProducts();
    }
}
